Skip to content

Instantly share code, notes, and snippets.

@yalexx
yalexx / gist-self-hosted-comparison.md
Last active November 3, 2026 11:59
Self-Hosted AI Assistants in 2026 — Complete Comparison

Self-Hosted AI Assistants in 2026 — Complete Comparison

Self-Hosted AI Assistants in 2026 — Complete Comparison

Comparing every way to run a private AI assistant at home or office. Updated February 2026.

The Landscape

In 2026, you have more options than ever for running AI privately. Here's every viable approach:

@jedavidson
jedavidson / 2521_exercises.md
Last active November 3, 2026 11:55
A curated list of some good revision and exam preparation programming problems for UNSW's COMP2521. Personal opinion.

These exercises are some I did while studying for COMP2521, as well as some others which I've found afterwards which I think will be relevant. I've collected these problems mostly from LeetCode and HackerRank, which are excellent sites for practicing your coding abilities. Accounts on both sites will be necessary to do the problems listed.

The difficulty ranking is obviously my opinion, but generally speaking here is what they mean:

  • Easy: Problems that you should be able to do without too much difficulty.
  • Intermediate: Problems that are a bit harder, but should be doable with a little bit of thought and intuition.
  • Challenges: Problems that I think are difficult and/or interesting, if you're up for it. There are almost all harder than what's within the scope of 2521.

If you're able to solve the easy and intermediate problems without much difficulty, you're probably very well prepared for any programming questions you'll receive in the ex

@mjambon
mjambon / self-extend
Last active November 3, 2026 11:54
Editing a bash script while it's running
#! /bin/bash
#
# Illustrate what happens when editing a script while it's running.
#
# This happens when saving the file in emacs, for example, but not with
# 'sed -i' because the latter deletes the old file before writing a new one.
# See https://unix.stackexchange.com/a/88572/46435 for an explanation.
#
set -eu
Product Year Version Product Keys
Visual Studio 2026 18.x
Professional: NVTDK-QB8J9-M28GR-92BPC-BTHXK
Enterprise: VYGRN-WPR22-HG4X3-692BF-QGT2V
https://x.com/massgravel/status/1988306014371008542
Visual Studio 2022 2021 17.x Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Enterprise:
@FaizeenHoque
FaizeenHoque / COMMIT_STYLE.md
Last active November 3, 2026 11:46
README Template for submissions

Git Commit Guidelines

This document defines how commits should be made in this repository.

The goal is to keep the Git history clear, searchable, consistent, and useful to future developers. A commit should explain what changed and, when necessary, why it changed.


When to Make Commits

@myheart111
myheart111 / How to download from pan.baidu.com, pan.quark.cn and 123pan without an account (2026).md
Last active November 3, 2026 11:45
How to download from pan.baidu.com, pan.quark.cn and 123pan without an account (2026)

How to download from pan.baidu.com, pan.quark.cn and 123pan without an account (2026)

✅ Working method (October 2026): baidufast.com

Paste a Baidu Netdisk (百度网盘), Quark Pan (夸克网盘), 123pan (123云盘) or Xunlei (迅雷云盘) share link → see the real size and price → get a direct download link. No account, no Chinese phone number, no app, no 50 KB/s. Files under 150 MB are free. Or post your link in the comments and I'll fetch it for you.

🔄 Last update 24 Oct 2026: Xunlei links are now automatic, and UC Drive and CSDN links are supported too — paste, see size and price, pay, download. PanDownload, baidu.kinh.cc, userscripts and Telegram bots are dead — see Old methods below.

Information

Krea 2 Prompting Guide — Posing, Weighting & Styles

Derived from: Krea2_00207_.json (ComfyUI workflow, 20 nodes) Workflow author credited in-file: X / @Zuanfilm (pose system) Cross-referenced against: the official krea-ai/krea-2 prompting docs, Krea's user docs, and the official ComfyUI Krea 2 tutorial. Written: 2026-07-28


0. TL;DR

@nicbarker
nicbarker / call_stack_replacement.c
Last active November 3, 2026 11:43
Call Stack Replacement - Memory Management, Explained Simply (Part 3)
#include <stddef.h>
typedef struct {
char* memory;
int length;
int capacity;
char* topStackFrame;
} LinearAllocator;
char AllocatorMemory[1024];
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.